package com.ly.designpatten.factory.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Classname Pizza
 * @Description TODO
 * @Date 2020/10/7 11:37
 * @Author 冷心影翼
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class Pizza {
	protected String name;

	public abstract void pre();

	public void cut() {
		System.out.println(name+"cut");
	}

	public void bake() {
		System.out.println(name+"bake");
	}

	public void box() {
		System.out.println(name+"box");
	}

}
